<?php 

require("../include/config.php");
require("../API/php/fonctions.php");
require("../API/php/header.php");

if(isset($_GET["crtl"])){
	$crtl = utf8_decode($_GET["crtl"]);
	
	// CONNECION SQL
	$db = mysql_connect($host, $base, $mdp)  or die('Erreur de connexion '.mysql_error());

	// CONNECION BASE
	mysql_select_db($base,$db)  or die('Erreur de selection '.mysql_error()); 

	$sql = "TRUNCATE TABLE `rec_inventaire_tocs_live`;";
	mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error()); 

	// DECONNECION SQL
	mysql_close();
}
	
?>